<?php
/**
 * aes 加密
 * @author pan.liang
 */
class m_aiqiyi_encrypt
{
    public static function encrypt($modId,$partnerId)
    {
        $src = ($modId * $partnerId);
        $src.="i71";
        $t = ceil(microtime(true)*1000);
        $secretkey="i71".$t;
        $iv = $modId+11717171;
        $iv = "11717171".$iv;
        $token = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $secretkey, $src, MCRYPT_MODE_ECB, $iv));
        return $t.$token."_".$partnerId;
    }
}